
bottom-stack:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400578 <_init>:
  400578:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40057c:	910003fd 	mov	x29, sp
  400580:	9400003e 	bl	400678 <call_weak_fn>
  400584:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400588:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400590 <.plt>:
  400590:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400594:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf55c>
  400598:	f947fe11 	ldr	x17, [x16, #4088]
  40059c:	913fe210 	add	x16, x16, #0xff8
  4005a0:	d61f0220 	br	x17
  4005a4:	d503201f 	nop
  4005a8:	d503201f 	nop
  4005ac:	d503201f 	nop

00000000004005b0 <malloc@plt>:
  4005b0:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  4005b4:	f9400211 	ldr	x17, [x16]
  4005b8:	91000210 	add	x16, x16, #0x0
  4005bc:	d61f0220 	br	x17

00000000004005c0 <__libc_start_main@plt>:
  4005c0:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  4005c4:	f9400611 	ldr	x17, [x16, #8]
  4005c8:	91002210 	add	x16, x16, #0x8
  4005cc:	d61f0220 	br	x17

00000000004005d0 <__gmon_start__@plt>:
  4005d0:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  4005d4:	f9400a11 	ldr	x17, [x16, #16]
  4005d8:	91004210 	add	x16, x16, #0x10
  4005dc:	d61f0220 	br	x17

00000000004005e0 <abort@plt>:
  4005e0:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  4005e4:	f9400e11 	ldr	x17, [x16, #24]
  4005e8:	91006210 	add	x16, x16, #0x18
  4005ec:	d61f0220 	br	x17

00000000004005f0 <puts@plt>:
  4005f0:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  4005f4:	f9401211 	ldr	x17, [x16, #32]
  4005f8:	91008210 	add	x16, x16, #0x20
  4005fc:	d61f0220 	br	x17

0000000000400600 <free@plt>:
  400600:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400604:	f9401611 	ldr	x17, [x16, #40]
  400608:	9100a210 	add	x16, x16, #0x28
  40060c:	d61f0220 	br	x17

0000000000400610 <__isoc99_scanf@plt>:
  400610:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400614:	f9401a11 	ldr	x17, [x16, #48]
  400618:	9100c210 	add	x16, x16, #0x30
  40061c:	d61f0220 	br	x17

0000000000400620 <printf@plt>:
  400620:	b0000090 	adrp	x16, 411000 <malloc@GLIBC_2.17>
  400624:	f9401e11 	ldr	x17, [x16, #56]
  400628:	9100e210 	add	x16, x16, #0x38
  40062c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400630 <_start>:
  400630:	d280001d 	mov	x29, #0x0                   	// #0
  400634:	d280001e 	mov	x30, #0x0                   	// #0
  400638:	aa0003e5 	mov	x5, x0
  40063c:	f94003e1 	ldr	x1, [sp]
  400640:	910023e2 	add	x2, sp, #0x8
  400644:	910003e6 	mov	x6, sp
  400648:	580000c0 	ldr	x0, 400660 <_start+0x30>
  40064c:	580000e3 	ldr	x3, 400668 <_start+0x38>
  400650:	58000104 	ldr	x4, 400670 <_start+0x40>
  400654:	97ffffdb 	bl	4005c0 <__libc_start_main@plt>
  400658:	97ffffe2 	bl	4005e0 <abort@plt>
  40065c:	00000000 	.inst	0x00000000 ; undefined
  400660:	00400888 	.word	0x00400888
  400664:	00000000 	.word	0x00000000
  400668:	00400958 	.word	0x00400958
  40066c:	00000000 	.word	0x00000000
  400670:	004009d8 	.word	0x004009d8
  400674:	00000000 	.word	0x00000000

0000000000400678 <call_weak_fn>:
  400678:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf55c>
  40067c:	f947f000 	ldr	x0, [x0, #4064]
  400680:	b4000040 	cbz	x0, 400688 <call_weak_fn+0x10>
  400684:	17ffffd3 	b	4005d0 <__gmon_start__@plt>
  400688:	d65f03c0 	ret
  40068c:	00000000 	.inst	0x00000000 ; undefined

0000000000400690 <deregister_tm_clones>:
  400690:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400694:	91014000 	add	x0, x0, #0x50
  400698:	b0000081 	adrp	x1, 411000 <malloc@GLIBC_2.17>
  40069c:	91014021 	add	x1, x1, #0x50
  4006a0:	eb00003f 	cmp	x1, x0
  4006a4:	540000a0 	b.eq	4006b8 <deregister_tm_clones+0x28>  // b.none
  4006a8:	90000001 	adrp	x1, 400000 <_init-0x578>
  4006ac:	f944fc21 	ldr	x1, [x1, #2552]
  4006b0:	b4000041 	cbz	x1, 4006b8 <deregister_tm_clones+0x28>
  4006b4:	d61f0020 	br	x1
  4006b8:	d65f03c0 	ret
  4006bc:	d503201f 	nop

00000000004006c0 <register_tm_clones>:
  4006c0:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4006c4:	91014000 	add	x0, x0, #0x50
  4006c8:	b0000081 	adrp	x1, 411000 <malloc@GLIBC_2.17>
  4006cc:	91014021 	add	x1, x1, #0x50
  4006d0:	cb000021 	sub	x1, x1, x0
  4006d4:	9343fc21 	asr	x1, x1, #3
  4006d8:	8b41fc21 	add	x1, x1, x1, lsr #63
  4006dc:	9341fc21 	asr	x1, x1, #1
  4006e0:	b40000a1 	cbz	x1, 4006f4 <register_tm_clones+0x34>
  4006e4:	90000002 	adrp	x2, 400000 <_init-0x578>
  4006e8:	f9450042 	ldr	x2, [x2, #2560]
  4006ec:	b4000042 	cbz	x2, 4006f4 <register_tm_clones+0x34>
  4006f0:	d61f0040 	br	x2
  4006f4:	d65f03c0 	ret

00000000004006f8 <__do_global_dtors_aux>:
  4006f8:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4006fc:	910003fd 	mov	x29, sp
  400700:	f9000bf3 	str	x19, [sp, #16]
  400704:	b0000093 	adrp	x19, 411000 <malloc@GLIBC_2.17>
  400708:	39414260 	ldrb	w0, [x19, #80]
  40070c:	35000080 	cbnz	w0, 40071c <__do_global_dtors_aux+0x24>
  400710:	97ffffe0 	bl	400690 <deregister_tm_clones>
  400714:	52800020 	mov	w0, #0x1                   	// #1
  400718:	39014260 	strb	w0, [x19, #80]
  40071c:	f9400bf3 	ldr	x19, [sp, #16]
  400720:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400724:	d65f03c0 	ret

0000000000400728 <frame_dummy>:
  400728:	17ffffe6 	b	4006c0 <register_tm_clones>

000000000040072c <empty>:
  40072c:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400730:	91018000 	add	x0, x0, #0x60
  400734:	f900001f 	str	xzr, [x0]
  400738:	d503201f 	nop
  40073c:	d65f03c0 	ret

0000000000400740 <push>:
  400740:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400744:	910003fd 	mov	x29, sp
  400748:	b9001fa0 	str	w0, [x29, #28]
  40074c:	d2800200 	mov	x0, #0x10                  	// #16
  400750:	97ffff98 	bl	4005b0 <malloc@plt>
  400754:	aa0003e1 	mov	x1, x0
  400758:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  40075c:	91016000 	add	x0, x0, #0x58
  400760:	f9000001 	str	x1, [x0]
  400764:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400768:	91016000 	add	x0, x0, #0x58
  40076c:	f9400000 	ldr	x0, [x0]
  400770:	b9401fa1 	ldr	w1, [x29, #28]
  400774:	b9000001 	str	w1, [x0]
  400778:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  40077c:	91016000 	add	x0, x0, #0x58
  400780:	f9400000 	ldr	x0, [x0]
  400784:	b0000081 	adrp	x1, 411000 <malloc@GLIBC_2.17>
  400788:	91018021 	add	x1, x1, #0x60
  40078c:	f9400021 	ldr	x1, [x1]
  400790:	f9000401 	str	x1, [x0, #8]
  400794:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400798:	91018000 	add	x0, x0, #0x60
  40079c:	f9400000 	ldr	x0, [x0]
  4007a0:	f100001f 	cmp	x0, #0x0
  4007a4:	540000e1 	b.ne	4007c0 <push+0x80>  // b.any
  4007a8:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4007ac:	91016000 	add	x0, x0, #0x58
  4007b0:	f9400001 	ldr	x1, [x0]
  4007b4:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4007b8:	9101a000 	add	x0, x0, #0x68
  4007bc:	f9000001 	str	x1, [x0]
  4007c0:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4007c4:	91016000 	add	x0, x0, #0x58
  4007c8:	f9400001 	ldr	x1, [x0]
  4007cc:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4007d0:	91018000 	add	x0, x0, #0x60
  4007d4:	f9000001 	str	x1, [x0]
  4007d8:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4007dc:	91018000 	add	x0, x0, #0x60
  4007e0:	f9400000 	ldr	x0, [x0]
  4007e4:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4007e8:	d65f03c0 	ret

00000000004007ec <pop>:
  4007ec:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007f0:	910003fd 	mov	x29, sp
  4007f4:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  4007f8:	91018000 	add	x0, x0, #0x60
  4007fc:	f9400000 	ldr	x0, [x0]
  400800:	f100001f 	cmp	x0, #0x0
  400804:	540000a1 	b.ne	400818 <pop+0x2c>  // b.any
  400808:	90000000 	adrp	x0, 400000 <_init-0x578>
  40080c:	91282000 	add	x0, x0, #0xa08
  400810:	97ffff78 	bl	4005f0 <puts@plt>
  400814:	1400001b 	b	400880 <pop+0x94>
  400818:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  40081c:	91018000 	add	x0, x0, #0x60
  400820:	f9400001 	ldr	x1, [x0]
  400824:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400828:	91016000 	add	x0, x0, #0x58
  40082c:	f9000001 	str	x1, [x0]
  400830:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400834:	91018000 	add	x0, x0, #0x60
  400838:	f9400000 	ldr	x0, [x0]
  40083c:	b9400000 	ldr	w0, [x0]
  400840:	b9001fa0 	str	w0, [x29, #28]
  400844:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400848:	91018000 	add	x0, x0, #0x60
  40084c:	f9400000 	ldr	x0, [x0]
  400850:	f9400401 	ldr	x1, [x0, #8]
  400854:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400858:	91018000 	add	x0, x0, #0x60
  40085c:	f9000001 	str	x1, [x0]
  400860:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400864:	91016000 	add	x0, x0, #0x58
  400868:	f9400000 	ldr	x0, [x0]
  40086c:	97ffff65 	bl	400600 <free@plt>
  400870:	90000000 	adrp	x0, 400000 <_init-0x578>
  400874:	91286000 	add	x0, x0, #0xa18
  400878:	b9401fa1 	ldr	w1, [x29, #28]
  40087c:	97ffff69 	bl	400620 <printf@plt>
  400880:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400884:	d65f03c0 	ret

0000000000400888 <main>:
  400888:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40088c:	910003fd 	mov	x29, sp
  400890:	97ffffa7 	bl	40072c <empty>
  400894:	90000000 	adrp	x0, 400000 <_init-0x578>
  400898:	9128c000 	add	x0, x0, #0xa30
  40089c:	97ffff55 	bl	4005f0 <puts@plt>
  4008a0:	910053a1 	add	x1, x29, #0x14
  4008a4:	90000000 	adrp	x0, 400000 <_init-0x578>
  4008a8:	91298000 	add	x0, x0, #0xa60
  4008ac:	97ffff59 	bl	400610 <__isoc99_scanf@plt>
  4008b0:	52800020 	mov	w0, #0x1                   	// #1
  4008b4:	b9001fa0 	str	w0, [x29, #28]
  4008b8:	1400000e 	b	4008f0 <main+0x68>
  4008bc:	90000000 	adrp	x0, 400000 <_init-0x578>
  4008c0:	9129a000 	add	x0, x0, #0xa68
  4008c4:	b9401fa1 	ldr	w1, [x29, #28]
  4008c8:	97ffff56 	bl	400620 <printf@plt>
  4008cc:	910063a1 	add	x1, x29, #0x18
  4008d0:	90000000 	adrp	x0, 400000 <_init-0x578>
  4008d4:	91298000 	add	x0, x0, #0xa60
  4008d8:	97ffff4e 	bl	400610 <__isoc99_scanf@plt>
  4008dc:	b9401ba0 	ldr	w0, [x29, #24]
  4008e0:	97ffff98 	bl	400740 <push>
  4008e4:	b9401fa0 	ldr	w0, [x29, #28]
  4008e8:	11000400 	add	w0, w0, #0x1
  4008ec:	b9001fa0 	str	w0, [x29, #28]
  4008f0:	b94017a0 	ldr	w0, [x29, #20]
  4008f4:	b9401fa1 	ldr	w1, [x29, #28]
  4008f8:	6b00003f 	cmp	w1, w0
  4008fc:	54fffe0d 	b.le	4008bc <main+0x34>
  400900:	b0000080 	adrp	x0, 411000 <malloc@GLIBC_2.17>
  400904:	9101a000 	add	x0, x0, #0x68
  400908:	f9400000 	ldr	x0, [x0]
  40090c:	b9400001 	ldr	w1, [x0]
  400910:	90000000 	adrp	x0, 400000 <_init-0x578>
  400914:	912a2000 	add	x0, x0, #0xa88
  400918:	97ffff42 	bl	400620 <printf@plt>
  40091c:	52800020 	mov	w0, #0x1                   	// #1
  400920:	b9001fa0 	str	w0, [x29, #28]
  400924:	14000005 	b	400938 <main+0xb0>
  400928:	97ffffb1 	bl	4007ec <pop>
  40092c:	b9401fa0 	ldr	w0, [x29, #28]
  400930:	11000400 	add	w0, w0, #0x1
  400934:	b9001fa0 	str	w0, [x29, #28]
  400938:	b94017a0 	ldr	w0, [x29, #20]
  40093c:	b9401fa1 	ldr	w1, [x29, #28]
  400940:	6b00003f 	cmp	w1, w0
  400944:	54ffff2d 	b.le	400928 <main+0xa0>
  400948:	97ffffa9 	bl	4007ec <pop>
  40094c:	52800000 	mov	w0, #0x0                   	// #0
  400950:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400954:	d65f03c0 	ret

0000000000400958 <__libc_csu_init>:
  400958:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  40095c:	910003fd 	mov	x29, sp
  400960:	a901d7f4 	stp	x20, x21, [sp, #24]
  400964:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf55c>
  400968:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf55c>
  40096c:	91374294 	add	x20, x20, #0xdd0
  400970:	913722b5 	add	x21, x21, #0xdc8
  400974:	a902dff6 	stp	x22, x23, [sp, #40]
  400978:	cb150294 	sub	x20, x20, x21
  40097c:	f9001ff8 	str	x24, [sp, #56]
  400980:	2a0003f6 	mov	w22, w0
  400984:	aa0103f7 	mov	x23, x1
  400988:	9343fe94 	asr	x20, x20, #3
  40098c:	aa0203f8 	mov	x24, x2
  400990:	97fffefa 	bl	400578 <_init>
  400994:	b4000194 	cbz	x20, 4009c4 <__libc_csu_init+0x6c>
  400998:	f9000bb3 	str	x19, [x29, #16]
  40099c:	d2800013 	mov	x19, #0x0                   	// #0
  4009a0:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4009a4:	aa1803e2 	mov	x2, x24
  4009a8:	aa1703e1 	mov	x1, x23
  4009ac:	2a1603e0 	mov	w0, w22
  4009b0:	91000673 	add	x19, x19, #0x1
  4009b4:	d63f0060 	blr	x3
  4009b8:	eb13029f 	cmp	x20, x19
  4009bc:	54ffff21 	b.ne	4009a0 <__libc_csu_init+0x48>  // b.any
  4009c0:	f9400bb3 	ldr	x19, [x29, #16]
  4009c4:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4009c8:	a942dff6 	ldp	x22, x23, [sp, #40]
  4009cc:	f9401ff8 	ldr	x24, [sp, #56]
  4009d0:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4009d4:	d65f03c0 	ret

00000000004009d8 <__libc_csu_fini>:
  4009d8:	d65f03c0 	ret

Disassembly of section .fini:

00000000004009dc <_fini>:
  4009dc:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4009e0:	910003fd 	mov	x29, sp
  4009e4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4009e8:	d65f03c0 	ret
